xen/arm: Introduce helpers to get/set an MFN from/to an LPAE entry
authorJulien Grall <julien.grall@arm.com>
Mon, 8 Oct 2018 18:33:38 +0000 (19:33 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 22 Nov 2018 14:16:58 +0000 (14:16 +0000)
commitf4febe5bfb1b70c219aef5f96fd3e6de7f59cd75
tree4d5497a598705fbc7b19e4f9d0c9662e682cf368
parent05f4cc2192359994f8eee5371b427279fef34ccb
xen/arm: Introduce helpers to get/set an MFN from/to an LPAE entry

The new helpers make it easier to read the code by abstracting the way to
set/get an MFN from/to an LPAE entry. The helpers are using "walk" as the
bits are common across different LPAE stages.

At the same time, use the new helpers to replace the various open-coding
place.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/arch/arm/p2m.c
xen/include/asm-arm/lpae.h